<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>修改用户密码</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/customer.css">
</head>
<body>
<h3>修改${customer.username}的密码</h3>
<div class="message">${ message }</div>
<div class="form-container">
    <form action="${pageContext.request.contextPath}/customer/change" method="post">
        <input type="hidden" name="id" value="${customer.id}">
        <div class="form-row">
            <label for="original">原始密码</label>
            <input type="password" name="original" id="original">
        </div>
        <div class="form-row">
            <label for="password">新密码</label>
            <input type="password" name="password" id="password">
        </div>
        <div class="form-row">
            <label for="confirm">确认新密码</label>
            <input type="password" name="confirm" id="confirm">
        </div>
        <div class="form-buttons">
            <button type="submit">确定修改</button>
        </div>
    </form>
</div>

<c:remove var="message" scope="session" />

</body>
</html>
